<?php

require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');

//if (!in_array(@$_SERVER['REMOTE_ADDR'], array('82.239.71.174', '::1')))
//{
//  header('Location: http://cpfaizenay.com/maintenance.php');
//}
//
//list($subdomain, $domain, $tld) = explode('.', $_SERVER['HTTP_HOST']);
//
//// En deduit l'application
//switch($subdomain)
//{
//    case "admin":
//        $app = "backend";
//    break;
//    case "news":
//        $app = "news";
//    break;
//    default:
//        $app = "frontend";
//    break;
//}

$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', false);
sfContext::createInstance($configuration)->dispatch();
